<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="script/jquery-1.7.2.js"></script>
<script type="text/javascript">
	
	
	$(function(){
		$("#j").click(function(){
			
			alert("??");
			$.ajax({
				type:"post",
				url:"test",
				data:"x=xx",
				success : function(res){
					$("#a").html(JSON.parse(res)["qq"]);
					console.log(JSON.parse(res));
			
				}
			});
		});
	});

</script>
</head>
<body>
<button id="j" >hhh</button>
<a id="a" >999</a>
</body>
</html>